import request from '@/utils/request'

export function getBlackboards(query) {
  return request({
    url: '/popularize/blackboard/getList',
    method: 'post',
    data: query
  })
}

export function getBlackboard(id) {
  return request({
    url: '/popularize/blackboard/getDetail',
    method: 'post',
    data: id
  })
}

export function saveBlackboard(id) {
  return request({
    url: '/popularize/blackboard/save',
    method: 'post',
    data: id
  })
}

export function removeBlackboardByID(id) {
  return request({
    url: '/popularize/blackboard/remove',
    method: 'post',
    data: id
  })
}

export function changeBlackboardStatusByID(id) {
  return request({
    url: '/popularize/blackboard/change-status',
    method: 'post',
    data: id
  })
}

export function getBlackboardAvabile() {
  return request({
    url: '/popularize/blackboard/getAvailable',
    method: 'post'
  })
}

